home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
F1 Licenseware
/
F1 Licenseware - Volume 1.iso
/
disks
/
049b.dms
/
049b.adf
/
MORE_SOURCE_CODE
/
Text_Encrypt.AMOS
/
Text_Encrypt.amosSourceCode
Wrap
AMOS Source Code
|
1992-02-26
|
426b
|
34 lines
' Text Encryption
' ~~~~~~~~~~~~~~~
' Steve Pullinger
' ~~~~~~~~~~~~~~~
' Length of input string sets code key
' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Do
LSTART:
EN$=""
UN$=""
Input ">";M$
If M$=""
Bell
Goto LSTART
End If
L=Len(M$)
For F=1 To L
TEMP$=Mid$(M$,F,1)
T=Asc(TEMP$)
T2=T+L
EN$=EN$+Chr$(T2)
Next F
Print EN$
L=Len(EN$)
For F=1 To L
TEMP$=Mid$(EN$,F,1)
T=Asc(TEMP$)
T2=T-L
UN$=UN$+Chr$(T2)
Next F
Print UN$
Loop